intltool: depend on hostpkg first
authorLucian Cristian <[email protected]>
Sun, 14 Apr 2019 13:18:29 +0000 (16:18 +0300)
committerLucian Cristian <[email protected]>
Sun, 14 Apr 2019 13:18:29 +0000 (16:18 +0300)
The scripts will use the $(STAGING_DIR)/bin/perl which is a simlink to native
perl, using $(STAGING_DIR_HOSTPKG) first will use the "perl/host" that has
multiple modules availabe to be built as host like perl-xml-parser

Using the $(STAGING_DIR)/bin/perl pakages that depend on "perl-xml-parser/host"
will fail with:

You must have XML::Parser installed to run
[...]/staging_dir/hostpkg/bin/intltool-merge

Signed-off-by: Lucian Cristian <[email protected]>
libs/intltool/Makefile

index 89d7a39c12fbacba68ca5258bafbacbd405361c0..93952271ad231168125195ce6304dccf7e95db06 100644 (file)
@@ -7,19 +7,24 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=intltool
 PKG_VERSION:=0.51.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://launchpad.net/intltool/trunk/$(PKG_VERSION)/+download
 PKG_HASH:=67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd
 PKG_MAINTAINER:=Ted Hess <[email protected]>
 
+
+HOST_BUILD_DEPENDS:=perl/host
 PKG_HOST_ONLY:=1
 HOST_FIXUP:=autoreconf
 
 include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
 
+HOST_CONFIGURE_VARS+= \
+        PATH=$(STAGING_DIR_HOSTPKG)/bin:$(STAGING_DIR_HOSTPKG)/usr/bin:$(PATH)
+
 define Package/intltool
   SECTION:=libs
   CATEGORY:=Libraries